setGlobalDuration(20)

env = genAdsr()

# MIDI
c = chord('C', octave = 5, format = 'midi')
soundfont(midipitch = c, starttime = 0, duration = 5)

# Hertz
h = chord('C', octave = 5, format = 'hertz')
waveform(pitch = h, amplitude=.3, starttime = 5, duration = 5, envelope = env)

print c, h

startCsound()